﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DMHelper.Models
{
    public class SavingThrowsContainer
    {
        public Dictionary<String, SavingThrowContainer> listAbilities = new Dictionary<String, SavingThrowContainer>();

        public SavingThrowContainer ability(String abilityName)
        {
            return listAbilities[abilityName];
        }

        public SavingThrowsContainer(NumericalField Con, NumericalField Dex, NumericalField Wis)
        {
            listAbilities.Add("For", new SavingThrowContainer(Con, "Fortitude"));
            listAbilities.Add("Ref", new SavingThrowContainer(Dex, "Reflex"));
            listAbilities.Add("Wil", new SavingThrowContainer(Wis, "Will"));
        }

    }
}